<template>
  <div>
    <router-view></router-view>
    <!-- <van-action-sheet v-model="show" :actions="actions" @select="onSelect"/> -->
  </div>
</template>

<script>
import { getAllchannelsApI } from '@/api'
export default {
  async created () {
    try {
      const res = await getAllchannelsApI()
      console.log(res)
    } catch (err) {
      console.log(err)
      // err参数拿到的就是错误对象
      // 给用户来个弹窗提示-程序出错了
      console.dir(err)
    }
  }
  // data () {
  //   return {
  //     show: false,
  //     actions: [{ name: '选项一' }, { name: '选项二' }, { name: '选项三' }]
  //   }
  // }
}
</script>

<style>

</style>
